/*
 * @Date: 2022-12-26 15:33:22
 * @LastEditors: 旧轩00°°
 * @LastEditTime: 2022-12-26 17:21:39
 * @FilePath: /vue3-ts-vite-pinia-husky/src/utils/index.ts
 */
import { defaultSetting } from '@/config/setting'
import Cache from './cache'

// 实例化 缓存
const cache = new Cache(defaultSetting.CACHE_NAME)

// 获取token
const getToken = () => cache.getCache(defaultSetting.TOKEN)

export { cache, getToken }
